Learn how to block websites on Windows 10 and 11 using the hosts file. Step-by-step guide with examples, limitations, and better alternatives for IT admins.
The hosts file is the first place Windows checks for IP addresses when connecting to websites and can be manually edited to block access to specific websites. The hosts file is located in "C:\Windows\system32\drivers\etc" on both
This tutorial will show you how to block websites for all users on the computer using the Hosts file in Windows 7, Windows 8, Windows 10, and Windows 11. You must be signed in as an administrator to edit the Hosts file.